import axios from '@/libs/api.request'

export class SysInitCustomerSalaryApi {
  static get (path, params = {}) {
    return request.get(path, createGETParams(params))
  }

  static post (path, params = {}) {
    return request.post(path, params)
  }

  // 初始化客户薪资接口
  static getList (params) {
    return axios.request({
      url: '/SysInitCustomerSalary/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 初始化客户薪资明细-导出
  static export (params) {
    return axios.request({
      url: '/SysInitCustomerSalary/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 初始化客户薪资明细-导入
  static import (params) {
    return axios.request({
      url: '/SysInitCustomerSalary/Import',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出错误数据附件
  static exportErrorFile (params) {
    return axios.request({
      url: '/SysInitCustomerSalary/ExportErrorFile',
      method: 'get',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除初始化客户薪资
  static delete (params) {
    return axios.request({
      url: '/SysInitCustomerSalary/Delete',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}